import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import './plugins/element.js'
import './assets/css/global.css'
import './assets/img/fonts/iconfont.css'
import './assets/css/iconfont.css';
import axios from 'axios'

// import 'default-passive-events'
import VueQuillEditor from 'vue-quill-editor'
import 'quill/dist/quill.core.css' // import styles
import 'quill/dist/quill.snow.css' // for snow theme
import 'quill/dist/quill.bubble.css' // for bubble theme

Vue.prototype.$http=axios
axios.interceptors.request.use(config=>{
  console.log(config);
  config.headers.Authorization = window.sessionStorage.getItem("token")
  return config
  
})
axios.defaults.baseURL="http://localhost:4008"
Vue.config.productionTip = false
Vue.use(VueQuillEditor, /* { default global options } */)
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
